package com.dashuai.modbus.core.master;

import com.dashuai.modbus.param.BatchReadParam;
import com.serotonin.modbus4j.exception.ErrorResponseException;
import com.serotonin.modbus4j.exception.ModbusTransportException;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *
 * </p>
 *
 * @author QM
 * @date 2024/8/21
 */
public class ModbusRTUMaster implements ModbusBaseRTUMaster{


    @Override
    public Boolean readCoilStatus(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Boolean readInputStatus(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Number readHoldingRegister(int slaveId, int offset, int dataType) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public <T> T readHoldingRegister(int slaveId, int offset, int dataType, Class<T> returnType) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Number readInputRegisters(int slaveId, int offset, int dataType) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public <T> T readInputRegisters(int slaveId, int offset, int dataType, Class<T> returnType) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Short read03Short(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Short read03UnsignedShort(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Integer read03Int(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Integer read03IntInverse(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Integer read03IntUnsigned(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Integer read03IntUnsignedInverse(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Long read03Long(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Long read03LongInverse(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Long read03LongUnsigned(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Long read03LongUnsignedInverse(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Float read03FloatABCD(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Float read03Float(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Float read03FloatCDAB(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Float read03FloatInverse(int slaveId, int offset) throws ModbusTransportException, ErrorResponseException {
        return null;
    }

    @Override
    public Double read03DoubleABCDEFGH(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Double read03Double(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Double read03DoubleGHEFCDAB(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public Double read03DoubleInverse(int slaveId, int offset) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public <T> Map<Integer, T> batchRead(int slaveId, List<Integer> offsetList, int dataType, Class<T> returnType) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public <T> Map<Integer, T> batchRead(List<BatchReadParam> batchReadParamList, int dataType, Class<T> returnType) throws ErrorResponseException, ModbusTransportException {
        return null;
    }

    @Override
    public boolean writeCoil(int slaveId, int writeOffset, boolean writeValue) throws ModbusTransportException {
        return false;
    }

    @Override
    public boolean batchWriteCoil(int slaveId, int startOffset, boolean[] writeValueArr) throws ModbusTransportException {
        return false;
    }

    @Override
    public boolean writeRegister(int slaveId, int writeOffset, short writeValue) throws ModbusTransportException {
        return false;
    }

    @Override
    public boolean batchWriteRegister(int slaveId, int startOffset, short[] writeValueArr) throws ModbusTransportException {
        return false;
    }

    @Override
    public void writeHoldingRegister(int slaveId, int offset, Number value, int dataType) throws ModbusTransportException, ErrorResponseException {

    }
}
